﻿using ABPLHQCS.Application;
using ABPLHQCS.Categories;
using ABPLHQCS.Permissions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;


namespace ABPLHQCS.FormItems
{

    
    public class FormItemAppService:CrudAppService<
        FormItem,
        FormItemDto,
        Guid,
        PagedAndSortedResultRequestDto,
        CreateUpdateFormItemDto
        >,IFormItemAppService
    {

        protected IList<FormCategoryDto> formCategoryDtos;



        public FormItemAppService(IRepository<FormItem,Guid> repository) : base(repository)
        {
            GetPolicyName = ABPLHQCSPermissions.FormItems.Default;
            GetListPolicyName = ABPLHQCSPermissions.FormItems.Default;
            CreatePolicyName = ABPLHQCSPermissions.FormItems.Create;
            UpdatePolicyName = ABPLHQCSPermissions.FormItems.Edit;
            DeletePolicyName = ABPLHQCSPermissions.FormItems.Delete;
            //formCategoryRepository = formCategoryrepository;
        }

        //public async Task GetFormCategories()
        //{
        //  var result=  await  formCategoryRepository.GetListAsync();
        //   formCategoryDtos = ObjectMapper.Map<List<FormCategory>, List<FormCategoryDto>>(result);
        //}
    }
}
